﻿#include "yuvstatusbar.h"
#include "define.h"
#include <QHBoxLayout>
#include <QLabel>

YuvStatusBar::YuvStatusBar(QWidget *parent)
    : YUVWidget(parent)
{
    setStyleSheet(QLatin1String(Utils::FileReader::fetchQrc(":/resource/zh_ch/qss/videoStatus.css")));

    m_pHLayoutBottom = new QHBoxLayout (this) ;
    m_pQLableStatus = new QLabel (this) ;

    //set fixed
    setFixedSize(YUVTool::StatusBarFixedWidth,
                                   YUVTool::StatusBarFixedHeight);
    m_pQLableStatus->setFixedSize(YUVTool::StatusBarFixedWidth,
                                   YUVTool::StatusBarFixedHeight);

    //add widget
    m_pHLayoutBottom->addWidget(m_pQLableStatus);
    m_pHLayoutBottom->setMargin(0);
    m_pHLayoutBottom->setSpacing(0);
    setLayout(m_pHLayoutBottom);
}


void YuvStatusBar::updataYuvStatus(QString text)
{
    //settext
    m_pQLableStatus->setText(text);
}

YuvStatusBar::~YuvStatusBar()
{

}
